<include file="../Public/_top" />
<script src="__THEME__/js/Highcharts/highcharts.js"></script>
<script src="__THEME__/js/Highcharts/highcharts-more.js"></script>
<script src="__THEME__/js/Highcharts/modules/exporting.js"></script>
<script type="text/javascript">
Highcharts.setOptions({
    lang:{
       contextButtonTitle:"图表导出菜单",
       decimalPoint:".",
       downloadJPEG:"下载JPEG图片",
       downloadPDF:"下载PDF文件",
       downloadPNG:"下载PNG文件",
       downloadSVG:"下载SVG文件",
       drillUpText:"返回 {series.name}",
       loading:"加载中",
       months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],
       noData:"没有数据",
       numericSymbols: [ "千" , "兆" , "G" , "T" , "P" , "E"],
       printChart:"打印图表",
       resetZoom:"恢复缩放",
       resetZoomTitle:"恢复图表",
       shortMonths: [ "Jan" , "Feb" , "Mar" , "Apr" , "May" , "Jun" , "Jul" , "Aug" , "Sep" , "Oct" , "Nov" , "Dec"],
       thousandsSep:",",
       weekdays: ["星期一", "星期二", "星期三", "星期三", "星期四", "星期五", "星期六","星期天"]
    }
});
</script>
<style type="text/css">
  .s_r_t{
    padding-top: 10px;
    height:50px;
    width:auto;
    color:#000;
    font-size:20px;
    line-height:50px;
    text-align:center;
  }
  .s_info{
    width:100%;
    height: 50px;
    padding-bottom:10px;
    font-size:14px;
    color:#fff;
    margin-left: 50px;
  }
  .s_info_text{
    margin-left:5px;
    float:left;
    width:210px;
    height:40px;
    line-height:40px;
    background-color: #1ca79c;
    text-align:center;
  }
  .litter_title{
    width:220px;
    height:32px;
    margin-left:10px;
    background-color:#e6e6e6;
    line-height:32px;
    color:#1ca89d;
    text-align:center;
    font-size:14px;
  }
  .report_box{
    width:98%;
    height:auto;
    margin-left:auto;
    margin-right: auto;
    margin-bottom: 10px;
    padding:5px;
    border:2px solid #e7e7e7;
  }
  .report_litle_box{
    width:27%;
    float: left;
    font-size:14px;
  }
  .r_l_b_text{
    width:49%;
    height:36px;
    line-height:36px;
    margin:0px 0px 10px 0px;
    text-align:center;
  }
  .rpt_reslult{
    margin:5px auto 5px auto;
    text-align:center;
    border:4px solid #d1b2ec;
    width:240px;
    height:50px;
    line-height:50px;
    font-size:14px;
    color:#fff;
    background-color:#fff;
    padding:4px;
  }
  .table{
    width:500px;
    border:1px solid #eeeeee;
    text-align:center;
    font-size:14px;
    font-weight:bold;
  }
</style>
<div class="content">
  <div class="wrap">
      <div class="con_side">
        <ul class="nav">
          <if condition="$userGroup eq 4"><li><a href="{:U('public/Report/Graden')}">园级报告</a></li></if>
          <li><a href="{:U('public/Report/index')}">班级报告</a></li>
          <li><a href="{:U('public/Report/OneReport')}">个体报告</a></li>
          <li><a href="{:U('public/Report/GradeSelfTestReport')}">班级自测报告</a></li>
          <li><a href="{:U('public/Report/OneSelfTestReport')}">个体自测报告</a></li>
        </ul>
      </div>
      <div id="report" style="background-color:#fff;width:1000px;margin-left:200px;padding-bottom:20px;">
        <div class="s_r_t">{$data.rpt_name}</div>
        <div class="s_info">
          <div class="s_info_text">体质得分：{$data.report_result.sum}分</div>
          <div class="s_info_text">姓名：{$student.stu_name}</div>
          <div class="s_info_text">班级：{$student.class_name}</div>
          <div class="s_info_text">测试日期：{$data.date}</div>
        </div>
        <!-- 国际体质和测试结果开始 -->
        <div class="litter_title">国标体质和测试结果</div>
        <div class="report_box">
          <div class="report_litle_box" style="color:#6fc4e1;margin-left:20px;">
            <div style="margin:8px 0px 8px 0px;">身体形态</div>
            <volist name="test_project" id="project">
              <if condition="$project['project_type'] eq 1">
              <ul style="width:100%;">
                <li class="r_l_b_text" style="float: left;background-color: #90ddf8;">{$project.project_name}</li>
                <li class="r_l_b_text" style="float: right;background-color: #52b4d7; color:#fff;">
                  <?php 
                    $keyName=array_keys($data);
                    foreach ($keyName as $key => $value) {
                      if($project['english_name']==$value){
                        echo $data[$value];
                      } 
                    }
                  ?>
                  {$project.unit}
                </li>
              </ul>
              </if>
            </volist>
            <ul style="width:100%;">
              <li class="r_l_b_text" style="float: left;background-color: #90ddf8;">总皮褶厚度</li>
              <li class="r_l_b_text" style="float: right;background-color: #52b4d7; color:#fff;">
                <php>echo $data["skinfold_abdomen"]+$data["skinfold_upper_arm"]+$data["skinfold_shoulder_armor"];</php>毫米
              </li>
            </ul>
          </div>
          <div class="report_litle_box" style="color:#db816e;margin-left:70px;">
            <div style="margin:8px 0px 8px 0px;">身体素质</div>
            <volist name="test_project" id="project">
              <if condition="$project['project_type'] eq 2">
              <ul style="width:100%;">
                <li class="r_l_b_text" style="float: left;background-color: #eead9d;">{$project.project_name}</li>
                <li class="r_l_b_text" style="float: right;background-color: #db7b63; color:#fff;">
                  <?php 
                    $keyName=array_keys($data);
                    foreach ($keyName as $key => $value) {
                      if($project['english_name']==$value){
                        echo $data[$value];
                      } 
                    }
                  ?>
                  {$project.unit}
                </li>
              </ul>
              </if>
            </volist>
          </div>
          <div class="report_litle_box" style="color:#43ada5;margin-left:70px;">
            <div style="margin:8px 0px 8px 0px;">身体机能</div>
            <volist name="test_project" id="project">
              <if condition="$project['project_type'] eq 3">
              <ul style="width:100%;">
                <li class="r_l_b_text" style="float: left;background-color: #9fecc9;">{$project.project_name}</li>
                <li class="r_l_b_text" style="float: right;background-color: #30b476; color:#fff;">
                  <?php 
                    $keyName=array_keys($data);
                    foreach ($keyName as $key => $value) {
                      if($project['english_name']==$value){
                        echo $data[$value];
                      } 
                    }
                  ?>
                  {$project.unit}
                </li>
              </ul>
              </if>
            </volist>
            <div style="margin:8px 0px 8px 0px;color:#f9b456;">其他情况</div>
              <ul style="width:100%;">
                <li class="r_l_b_text" style="float: left;background-color: #fddaaa;color:#f9b456;">来园方式</li>
                <li class="r_l_b_text" style="float: right;background-color: #f8ae4a; color:#fff;">
                <if condition="$data['modes_transportation'] eq 1">走路<else/>坐车</if>
                </li>
              </ul>
              <ul style="width:100%;">
                <li class="r_l_b_text" style="float: left;background-color: #fddaaa;color:#f9b456;">出生状况</li>
                <li class="r_l_b_text" style="float: right;background-color: #f8ae4a; color:#fff;">
                <if condition="$student['birth_condition'] eq 1">顺产<else/>剖腹产</if>
                </li>
              </ul>
              <ul style="width:100%;">
                <li class="r_l_b_text" style="float: left;background-color: #fddaaa;color:#f9b456;">左眼视力</li>
                <li class="r_l_b_text" style="float: right;background-color: #f8ae4a; color:#fff;">{$data.vision_left}
                </li>
              </ul>
              <ul style="width:100%;">
                <li class="r_l_b_text" style="float: left;background-color: #fddaaa;color:#f9b456;">右眼视力</li>
                <li class="r_l_b_text" style="float: right;background-color: #f8ae4a; color:#fff;">{$data.vision_right}</li>
              </ul>
            </div>
          <div style="clear:both"></div>
          <div class="rpt_reslult"><div style="background-color:#d1b2ec;height:50px;">
            国标测试结果：
            <if condition="$data['report_result']['result'] eq 0">无法评级</if>
            <if condition="$data['report_result']['result'] eq 1">一级（优秀）</if>
            <if condition="$data['report_result']['result'] eq 2">二级（良好）</if>
            <if condition="$data['report_result']['result'] eq 3">三级（合格）</if>
            <if condition="$data['report_result']['result'] eq 4">四级（不合格）</if>
          </div></div>
        </div>
        <!-- 国际体质和测试结果结束 -->
        <!-- 身体形态鉴定开始 -->
        <div class="litter_title">身体形态鉴定</div>
        <div class="report_box">
          <div class="con_box">
            <div style="float:left;width:400px;">
              <div id="height" style="min-width: 200px; height: 500px; max-width: 500px; margin: 0 auto;"></div>
              <script>
                $(function () {
                var age="<?php echo $data['report_result']['age']; ?>";
                var height="<?php echo $data['height']; ?>";
                var arr=new Array();
                var user=new Array();
                
                arr[0]=parseFloat(age);
                arr[1]=parseFloat(height);
                user[0]=arr;
                averages = user;
                var ranges1=[
                  [3, 0,91.2],[3.5, 0,94.1],[4, 0,97.5],[4.5, 0,100],[5, 0,103.1],[5.5, 0,104.6],[6, 0,108.2],
                ];
                var ranges2=[
                  [3, 91.2,95.4],[3.5, 94.1,98.2],[4, 97.5,101.9],[4.5, 100,104.6],[5, 103.1,107.8],[5.5, 104.6,110.1],[6, 108.2,113.2],
                ];
                var ranges3=[
                  [3, 99.5,99.3],[3.5, 98.3,102],[4, 102,105.4],[4.5, 104.7,108.4],[5, 107.9,111.9],[5.5, 110.2,114.6],[6, 113.3,117.7],
                ];
                var ranges4=[
                  [3, 99.4,104.1],[3.5, 102.1,106.9],[4, 105.5,110.4],[4.5, 108.5,113.1],[5, 112,116.9],[5.5, 114.7,119.7],[6, 117.8,123],
                ];
                var ranges5=[
                 [3, 104.2,150],[3.5, 107,150],[4, 110.5,150],[4.5, 113.2,150],[5, 117,150],[5.5, 119.8,150],[6, 123.1,150],
                 ];
                $('#height').highcharts({
            exporting: {
              enabled:false
            },
                  title: {
                    text: '身高所处位置'
                  },
                  xAxis: {
                    title: {
                      enabled: true,
                      text: '年龄(岁)',
                    },
                  },
                  yAxis: {
                    title: {
                      text: '身高(cm)',
                    },
                  },
                  tooltip: {
                    headerFormat: '<b>{series.name}</b><br>',
                    pointFormat: '{point.x}岁, {point.y}cm'
                  },
                  
                  legend: {
                  },
                  
                  series: [
                  {
                    name: '所处位置',
                    data: averages,
                    zIndex: 1,
                    marker: {
                      fillColor: 'white',
                      lineWidth: 2,
                      lineColor: Highcharts.getOptions().colors[0]
                    }
                  }, 
                  {
                    name: '很矮',
                    data: ranges1,
                    type: 'arearange',
                    lineWidth: 0,
                    linkedTo: ':previous',
                    color: Highcharts.getOptions().colors[2],
                    fillOpacity: 0.3,
                    zIndex: 0
                  },
                  {
                    name: '偏矮',
                    data: ranges2,
                    type: 'arearange',
                    lineWidth: 0,
                    linkedTo: ':previous',
                    color: Highcharts.getOptions().colors[8],
                    fillOpacity: 0.3,
                    zIndex: 0
                  },
                  {
                    name: '标准',
                    data: ranges3,
                    type: 'arearange',
                    lineWidth: 0,
                    linkedTo: ':previous',
                    color: Highcharts.getOptions().colors[4],
                    fillOpacity: 0.3,
                    zIndex: 0
                  },
                  {
                    name: '偏高',
                    data: ranges4,
                    type: 'arearange',
                    lineWidth: 0,
                    linkedTo: ':previous',
                    color: Highcharts.getOptions().colors[5],
                    fillOpacity: 0.3,
                    zIndex: 0
                  },
                  {
                    name: '很高',
                    data: ranges5,
                    type: 'arearange',
                    lineWidth: 0,
                    linkedTo: ':previous',
                    color: Highcharts.getOptions().colors[6],
                    fillOpacity: 0.3,
                    zIndex: 0
                  }
                  ]
                });
              });            
              </script>
            </div>
            <div style="float:left;width:400px;">
              <div id="weight" style="min-width: 200px; height: 500px; max-width: 500px; margin: 0 auto;"></div>
              <script>
               $(function () {
                var height="<?php echo $data['height']; ?>";
                var weight="<?php echo $data['weight']; ?>";
                var arr=new Array();
                var user=new Array();
                arr[0]=parseFloat(height);
                arr[1]=parseFloat(weight);
                user[0]=arr;
                averages = user;
                var ranges1=[
                [76, 0, 8.6],[77, 0, 8.7],[78, 0, 8.9],[79, 0, 9.1],[80, 0, 9.2],[81, 0, 9.4],[82, 0, 9.6],[83, 0, 9.8],[84, 0, 10.0],[85, 0, 10.1],[86, 0, 10.3],[87, 0, 10.5],[88, 0, 10.7],[89, 0, 10.9],[90, 0, 11.1],[91, 0, 11.3],[92, 0, 11.3],[93, 0, 11.7],[94, 0, 11.9],[95, 0, 12.1],[96, 0, 12.4],[97, 0, 12.6],[98, 0, 12.8],[99, 0, 13.0],[100, 0, 13.3],[101, 0, 13.5],[102, 0, 13.7],[103, 0, 13.9],[104, 0, 14.1],[105, 0, 14.4],[106, 0, 14.6],[107, 0, 14.8],[108, 0, 15.0],[109, 0, 15.3],[110, 0, 15.6],[111, 0, 15.9],[112, 0, 16.2],[113, 0, 16.5],[114, 0, 16.8],[115, 0, 17.1],[116, 0, 17.4],[117, 0, 17.8],[118, 0, 18.1],[119, 0, 18.5],[120, 0, 18.9],[121, 0, 19.3],[122, 0, 19.6],[123, 0, 20.0],[124, 0, 20.4],[125, 0, 20.8],[126, 0, 21.2],[127, 0, 21.6],[128, 0, 22.0],[129, 0, 22.5],[130, 0, 22.9],[131, 0, 23.4],[132, 0, 23.8],[133, 0, 24.3],[134, 0, 24.8],[135, 0, 25.3],[136, 0, 25.8],[137, 0, 26.3],[138, 0, 26.8],[139, 0, 27.4],[140, 0, 27.9],[141, 0, 28.4],[142, 0, 29.0],[143, 0, 29.7],[144, 0, 30.4],[145, 0, 31.0],
                ];
                var ranges2=[
                  [76, 8.6,9.3],[77, 8.7, 9.5],[78, 8.9, 9.7],[79, 9.1,9.8],[80, 9.2, 10.0],[81, 9.4,10.1],[82, 9.6, 10.2],[83, 9.8,10.4],[84, 10.0,10.5],[85, 10.1, 10.7],[86, 10.3, 10.9],[87, 10.5,11.1],[88, 10.7, 11.3],[89, 10.9,11.5],[90, 11.1,11.7],[91, 11.3,11.9],[92, 11.3,12.1],[93,11.7,12.3],[94, 11.9, 12.5],[95, 12.1, 12.7],[96, 12.4, 12.9],[97, 12.6,13.2],[98, 12.8, 13.5],[99, 13.0, 13.7],[100, 13.3, 14.0],[101, 13.5,14.3],[102, 13.7, 14.6],[103, 13.9, 14.9],[104, 14.1, 15.2],[105, 14.4,15.6],[106, 14.6,15.8],[107, 14.8, 16.0],[108, 15.0, 16.2],[109, 15.3, 16.5],[110, 15.6, 16.8],[111, 15.9, 17.1],[112, 16.2,17.4],[113,16.5,17.7],[114, 16.8,17.9],[115,17.1, 18.1],[116, 17.4,18.3],[117, 17.8,18.5],[118, 18.1, 18.7],[119, 18.5,18.9],[120, 18.9, 19.2],[121, 19.3, 19.5],[122, 19.6,20.0],[123, 20.0, 20.4],[124, 20.4, 20.8],[125, 20.8,21.3],[126, 21.2,21.7 ],[127, 21.6,22.2],[128, 22.0, 22.6],[129, 22.5, 23.1],[130, 22.9, 23.6],[131, 23.4, 24.1],[132, 23.8, 24.6],[133, 24.3, 25.1],[134, 24.8, 25.7],[135, 25.3,26.2],[136, 25.8, 26.8],[137, 26.3,27.4],[138, 26.8, 28.0],[139, 27.4, 28.6],[140, 27.9, 29.2],[141, 28.4,29.9],[142,29.0,30.6],[143,29.7,31.3],[144, 30.4,31.9],[145, 31.0,32.5],
                ];
                var ranges3=[
                  [76, 9.3,11.7],[77, 9.5,11.8],[78, 9.7,11.9],[79, 9.8,12.1],[80, 10.0,12.3],[81, 10.1,12.5],[82, 10.2,12.7],[83, 10.4,12.9],[84, 10.5,13.1],[85, 10.7,13.3],[86, 10.9,13.6],[87,11.1,13.8],[88, 11.3,14.0],[89,11.5,14.3],[90,11.7,14.5],[91,11.9,14.7],[92,12.1,15.0],[93,12.3,15.2],[94,  12.5,15.4],[95,12.7,15.7],[96, 12.9,16.0],[97,13.2,16.2],[98, 13.5,16.5],[99,13.7,16.8],[100,14.0,17.0],[101,14.3,17.3],[102,14.6,17.6],[103,14.9,17.9],[104,15.2,18.2],[105,15.6,18.5],[106,15.8,18.8],[107, 16.0, 19.1],[108, 16.2, 19.4],[109, 16.5, 19.9],[110, 16.8, 20.0],[111, 17.1, 20.5],[112, 17.4,20.9],[113,17.7,21.3],[114, 17.9,21.8],[115,18.1, 22.1],[116, 18.1,22.5],[117, 18.5,22.9],[118, 18.7, 23.4],[119,18.9,23.8],[120, 19.2,24.3],[121, 19.5,24.7],[122, 20.0,25.3],[123, 20.4, 25.8],[124, 20.8,26.3 ],[125, 21.3,26.9],[126, 21.7, 27.4],[127,22.2,28.0],[128,22.6,28.6 ],[129, 23.1,29.2 ],[130, 23.6,29.8 ],[131, 24.1,30.5],[132, 24.6, 31.2],[133, 25.1, 31.9],[134, 25.7, 32.7],[135, 26.2,33.4],[136, 26.8, 34.2],[137,27.4,35.0],[138, 28.0, 35.8],[139, 28.6, 36.6],[140, 29.2, 37.5],[141, 29.9,38.5],[142,30.6,39.6],[143,31.3,40.6],[144,31.9,41.7],[145,32.5,42.7],
                ];
                var ranges4=[
                  [76, 11.7,12.4],[77, 11.8,12.5],[78, 11.9,12.6],[79,12.1,12.8],[80,12.3,12.9],[81,12.5,13.1],[82,12.7,13.3],[83,12.9,13.5],[84,13.1,13.8],[85,13.3,14.0],[86,13.6,14.2],[87,13.8,14.5],[88,14.0,14.7],[89,14.3,14.9],[90,14.5,15.2],[91,14.7,15.4],[92,15.0,15.6],[93,15.2,15.9],[94,15.4,16.1],[95,15.7,16.4],[96,16.0,16.6],[97,16.2,16.9],[98,16.5,17.2],[99,16.8,17.5],[100,17.0,17.7],[101,17.3,18.0],[102,17.6,18.3],[103,17.9,18.6],[104,18.2,18.9],[105,18.5,19.3],[106,18.8,19.6],[107,19.1,19.9],[108,19.4,20.3],[109,19.9,20.7],[110,20.0,21.0],[111,20.5,21.4],[112,20.9,21.9],[113,21.3,22.2],[114,21.8,22.6],[115,22.1,23.1 ],[116,22.5,23.5],[117,22.9,24.0],[118,23.4,24.5 ],[119,23.8,25.0],[120,24.3,25.5],[121,24.7,26.0],[122,25.3,26.5],[123,25.8,27.1],[124,26.3,27.7],[125,26.9,28.3],[126,27.4,28.9],[127,28.0,29.5],[128,28.6,30.2],[129,29.2,30.9],[130,29.8,31.6],[131,30.5,32.3],[132,31.2, 33.1],[133,31.9,33.8],[134,32.7,34.6],[135,33.4,35.5],[136,34.2,36.3],[137,35.0,36.9],[138,35.8,37.5],[139,36.6,38.2],[140,37.5,38.9],[141,38.5,39.7],[142,39.6,40.6],[143,40.6,41.6],[144,41.7,42.6],[145,42.75,43.7],
                ];
                var ranges5=[
                 [76, 12.4,50],[77, 12.5,50],[78, 12.6,50],[79,12.8,50],[80,12.9,50],[81,13.1,50],[82,13.3,50],[83,13.5,50],[84,13.8,50],[85,14.0,50],[86,14.2,50],[87,14.5,50],[88,14.7,50],[89,14.9,50],[90,15.2,50],[91,15.4,50],[92,15.6,50],[93,15.9,50],[94,16.1,50],[95,16.4,50],[96,16.6,50],[97,16.9,50],[98,17.2,50],[99,17.5,50],[100,17.7,50],[101,18.0,50],[102,18.3,50],[103,18.6,50],[104,18.9,50],[105,19.3,50],[106,19.6,50],[107,19.9,50],[108,20.3,50],[109,20.7,50],[110,21.0,50],[111,21.4,50],[112,21.9,50],[113,22.2,50],[114,22.6,50],[115,23.1,50 ],[116,23.5,50],[117,24.0,50],[118,24.5, 50],[119,25.0,50],[120,25.5,50],[121,26.0,50],[122,26.5,50],[123,27.1,50],[124,27.7,50],[125,28.3,50],[126,28.9,50],[127,29.5,50],[128,30.2,50],[129,30.9,50],[130,31.6,50],[131,32.3,50],[132,33.1,50],[133,33.8,50],[134,34.6,50],[135,35.5,50],[136,36.3,50],[137,36.9,50],[138,37.5,50],[139,38.2,50],[140,38.9,50],[141,39.7,50],[142,40.6,50],[143,41.6,50],[144,42.6,50],[145,43.7,50],
                ];
                $('#weight').highcharts({
            exporting: {
              enabled:false
            },
                  title: {
                    text: '身高标准体重所处位置'
                  },
                  xAxis: {
                    title: {
                      enabled: true,
                      text: '身高(cm)',
                    },
                  },
                  yAxis: {
                    title: {
                      text: '体重 (kg)',
                    },
                  },
                  tooltip: {
                    headerFormat: '<b>{series.name}</b><br>',
                    pointFormat: '{point.x}cm, {point.y}kg'
                  },
                  
                  legend: {
                  },
                  
                  series: [
                  {
                    name: '所处位置',
                    data: averages,
                    zIndex: 1,
                    marker: {
                      fillColor: 'white',
                      lineWidth: 2,
                      lineColor: Highcharts.getOptions().colors[0]
                    }
                  }, 
                  {
                    name: '很瘦',
                    data: ranges1,
                    type: 'arearange',
                    lineWidth: 0,
                    linkedTo: ':previous',
                    color: Highcharts.getOptions().colors[2],
                    fillOpacity: 0.3,
                    zIndex: 0
                  },
                  {
                    name: '偏瘦',
                    data: ranges2,
                    type: 'arearange',
                    lineWidth: 0,
                    linkedTo: ':previous',
                    color: Highcharts.getOptions().colors[8],
                    fillOpacity: 0.3,
                    zIndex: 0
                  },
                  {
                    name: '标准',
                    data: ranges3,
                    type: 'arearange',
                    lineWidth: 0,
                    linkedTo: ':previous',
                    color: Highcharts.getOptions().colors[4],
                    fillOpacity: 0.3,
                    zIndex: 0
                  },
                  {
                    name: '偏胖',
                    data: ranges4,
                    type: 'arearange',
                    lineWidth: 0,
                    linkedTo: ':previous',
                    color: Highcharts.getOptions().colors[5],
                    fillOpacity: 0.3,
                    zIndex: 0
                  },
                  {
                    name: '很胖',
                    data: ranges5,
                    type: 'arearange',
                    lineWidth: 0,
                    linkedTo: ':previous',
                    color: Highcharts.getOptions().colors[6],
                    fillOpacity: 0.3,
                    zIndex: 0
                  }
                  ]
                });
              });            
              </script>
            </div>
            <div style="width:100px;border:2px solid #c4d4a3; float:right;height:200px;margin-top:100px;border-radius:10px">
              <p style="margin:5px; font-size:14px;line-height:26px;">身高：{$data.height}cm</p>
              <p style="margin:5px; font-size:14px;line-height:26px;">体重：{$data.weight}kg</p>
              <p style="margin:5px; font-size:14px;line-height:26px;">身高标准：<br/>
                <if condition="$data['report_result']['height'] eq 0">无法评级</if>
                <if condition="$data['report_result']['height'] eq 1">很矮</if>
                <if condition="$data['report_result']['height'] eq 2">较矮</if>
                <if condition="$data['report_result']['height'] eq 3">标准</if>
                <if condition="$data['report_result']['height'] eq 4">较高</if>
                <if condition="$data['report_result']['height'] eq 5">很高</if>
              </p>
              <p style="margin:5px; font-size:14px;line-height:26px;">体重标准：<br/>
                <if condition="$data['report_result']['is_obesity'] eq 1">很瘦</if>
                <if condition="$data['report_result']['is_obesity'] eq 2">较瘦</if>
                <if condition="$data['report_result']['is_obesity'] eq 3">标准</if>
                <if condition="$data['report_result']['is_obesity'] eq 4">较胖</if>
                <if condition="$data['report_result']['is_obesity'] eq 5">很胖</if>
              </p>
            </div>
          </div>
          <!-- 身高环比开始 -->
          <div id="height_hb" style="width:60%;margin-left: auto;margin-right: auto;"></div>
            <script>
            var height_2014="<?php echo $userLastreport[1]['height']; ?>";
            var height_2015="<?php echo $userLastreport[0]['height']; ?>";
            var height_2016="<?php echo $data['height']; ?>";
            var data=new Array(parseFloat(height_2014),parseFloat(height_2015),parseFloat(height_2016));
            for(var i=0;i<data.length;i++){
              if(!data[i]){
                data[i]=0;
              }
            }
             $('#height_hb').highcharts({
            exporting: {
              enabled:false
            },
                title: {
                  text: '身高环比',
                  x: -20 //center
                },
                xAxis: {
                  categories: ['<?php echo $yeararr[2]-2;?>', '<?php echo $yeararr[2]-1;?>', '<?php echo $yeararr[2];?>']
                },
                yAxis: {
                  title: {
                      text: '身高 (cm)'
                  },
                  plotLines: [{
                    value: 0,
                    width: 1,
                    color: '#808080'
                  }]
                },
                tooltip: {
                  valueSuffix: 'cm'
                },
                legend: {
                  layout: 'vertical',
                  align: 'right',
                  verticalAlign: 'middle',
                  borderWidth: 0
                },
                series: [{
                  name: '身高',
                  data: data
                },]
            });
          </script>
          <!-- 身高环比结束 -->
          <div style="padding-left: 260px;">
            <span style="padding:10px 0px 10px 0px;">身高环比</span><br/><br/>
            <table class="table" border="1">
              <tr>
                <td height="30" style="text-align:center;"><?php echo $yeararr[2]-2;?></td>
                <td style="text-align:center;"><?php echo $yeararr[2]-1;?></td>
                <td style="text-align:center;"><?php echo $yeararr[2];?></td>
              </tr>
              <tr>
                <td style="text-align:center;">
                  <if condition="$userLastreport">
                    <if condition="$userLastreport[1]">{$userLastreport[1]["height"]}cm<else/>无</if>
                  <else/>
                    无
                  </if>
                </td>
                <td style="text-align:center;">
                  <if condition="$userLastreport">
                    <if condition="$userLastreport[0]">{$userLastreport[0]["height"]}cm<else/>无</if>
                  <else/>
                    无
                  </if>
                </td>                
                <td height="30" style="text-align:center;">{$data.height}cm</td>
              </tr>
            </table>
          </div>
          <!-- 体重环比开始 -->
          <div id="wight_hb" style="width:60%;margin:10px auto 10px auto;"></div>
            <script>
              var weight_2014="<?php echo $userLastreport[1]['weight']; ?>";
              var weight_2015="<?php echo $userLastreport[0]['weight']; ?>";
              var weight_2016="<?php echo $data['weight']; ?>";
              var data=new Array(parseFloat(weight_2014),parseFloat(weight_2015),parseFloat(weight_2016));
              for(var i=0;i<data.length;i++){
                if(!data[i]){
                  data[i]=0;
                }
              }
             $('#wight_hb').highcharts({
            exporting: {
              enabled:false
            },
                title: {
                  text: '体重环比',
                  x: -20 //center
                },
                xAxis: {
                  categories: ['<?php echo $yeararr[2]-2;?>', '<?php echo $yeararr[2]-1;?>', '<?php echo $yeararr[2];?>']
                },
                yAxis: {
                  title: {
                      text: '体重 (kg)'
                  },
                  plotLines: [{
                    value: 0,
                    width: 1,
                    color: '#808080'
                  }]
                },
                tooltip: {
                  valueSuffix: 'kg'
                },
                legend: {
                  layout: 'vertical',
                  align: 'right',
                  verticalAlign: 'middle',
                  borderWidth: 0
                },
                series: [{
                  name: '体重',
                  data: data
                },]
            });
          </script>
          <!-- 体重环比结束 -->
          <div style="padding-left: 260px;">
            <span style="padding:10px 0px 10px 0px;">体重环比</span><br/><br/>
            <table class="table" border="1">
              <tr>
                <td height="30" style="text-align:center;"><?php echo $yeararr[2]-2;?></td>
                <td style="text-align:center;"><?php echo $yeararr[2]-1;?></td>
                <td style="text-align:center;"><?php echo $yeararr[2];?></td>
              </tr>
              <tr>
                <td style="text-align:center;">
                  <if condition="$userLastreport">
                    <if condition="$userLastreport[1]">{$userLastreport[1]["weight"]}kg<else/>无</if>
                  <else/>
                    无
                  </if>
                </td>
                <td style="text-align:center;">
                  <if condition="$userLastreport">
                    <if condition="$userLastreport[0]">{$userLastreport[0]["weight"]}kg<else/>无</if>
                  <else/>
                    无
                  </if>
                </td>
                <td height="30" style="text-align:center;">{$data.weight}kg</td>
              </tr>
            </table>
          </div>
        </div>
        <!-- 身体形态鉴定结束 -->
        <!-- 身体素质鉴定开始 -->
        <div class="litter_title">身体素质鉴定</div>
        <div class="report_box">
          <div class="con_box">
            <div style="float:left;width:400px;">
              <div id="quality" style="min-width:200px; max-width: 500px; height:200px; margin: 0 auto;"></div>
              <script>
                var continuousJump="<?php echo $data['report_result']['continuousJump']; ?>";
                var balanceBeam="<?php echo $data['report_result']['balanceBeam']; ?>";
                var tennis_throw="<?php echo $data['report_result']['tennis_throw']; ?>";
                var standing_long_jump="<?php echo $data['report_result']['standing_long_jump']; ?>";
                var reentry_run="<?php echo $data['report_result']['reentry_run']; ?>";
                var flexion="<?php echo $data['report_result']['flexion']; ?>";
                var data=new Array(parseFloat(continuousJump),parseFloat(balanceBeam),parseFloat(tennis_throw),parseFloat(standing_long_jump),parseFloat(reentry_run),parseFloat(flexion));
                $('#quality').highcharts({
            exporting: {
              enabled:false
            },
                  chart: {
                      polar: true,
                      type: 'line'
                  },
                  title: {
                      text: '',
                      x: -80
                  },
                  pane: {
                      size: '80%'
                  },
                  xAxis: {
                      categories: ['灵敏协调', '平衡能力', '上肢力量', '下肢力量',
                              '速度素质', '柔韧素质'],
                      tickmarkPlacement: 'on',
                      lineWidth: 0
                  },
                  yAxis: {
                      gridLineInterpolation: 'polygon',
                      lineWidth: 0,
                      min: 0
                  },
                  tooltip: {
                      shared: true,
                      pointFormat: '<span style="color:{series.color}">{series.name}: <b>{point.y:,.0f}</b><br/>'
                  },
                  legend: {
                      align: 'right',
                      verticalAlign: 'top',
                      y: 70,
                      layout: 'vertical'
                  },
                  series: [{
                      name: '鉴定值',
                      data: data,
                      pointPlacement: 'on'
                  }
                ]
                });
              </script>
            </div>
            <!-- 素质环比开始 -->
            <div style="float:right;width:500px;" id="quality_hb"></div>
            <script>
                var continuousJump_2014="<?php echo $userLastreport[1]['continuousJump']; ?>";
                var balanceBeam_2014="<?php echo $userLastreport[1]['balanceBeam']; ?>";
                var tennis_throw_2014="<?php echo $userLastreport[1]['tennis_throw']; ?>";
                var standing_long_jump_2014="<?php echo $userLastreport[1]['standing_long_jump']; ?>";
                var reentry_run_2014="<?php echo $userLastreport[1]['reentry_run']; ?>";
                var flexion_2014="<?php echo $userLastreport[1]['flexion']; ?>";
                var data_2014=new Array(parseFloat(continuousJump_2014),parseFloat(balanceBeam_2014),parseFloat(tennis_throw_2014),parseFloat(standing_long_jump_2014),parseFloat(reentry_run_2014),parseFloat(flexion_2014));
                var continuousJump_2015="<?php echo $userLastreport[0]['continuousJump']; ?>";
                var balanceBeam_2015="<?php echo $userLastreport[0]['balanceBeam']; ?>";
                var tennis_throw_2015="<?php echo $userLastreport[0]['tennis_throw']; ?>";
                var standing_long_jump_2015="<?php echo $userLastreport[0]['standing_long_jump']; ?>";
                var reentry_run_2015="<?php echo $userLastreport[0]['reentry_run']; ?>";
                var flexion_2015="<?php echo $userLastreport[0]['flexion']; ?>";
                var data_2015=new Array(parseFloat(continuousJump_2015),parseFloat(balanceBeam_2015),parseFloat(tennis_throw_2015),parseFloat(standing_long_jump_2015),parseFloat(reentry_run_2015),parseFloat(flexion_2015));
                var continuousJump_2016="<?php echo $data['continuousJump']; ?>";
                var balanceBeam_2016="<?php echo $data['balanceBeam']; ?>";
                var tennis_throw_2016="<?php echo $data['tennis_throw']; ?>";
                var standing_long_jump_2016="<?php echo $data['standing_long_jump']; ?>";
                var reentry_run_2016="<?php echo $data['reentry_run']; ?>";
                var flexion_2016="<?php echo $data['flexion']; ?>";
                var data_2016=new Array(parseFloat(continuousJump_2016),parseFloat(balanceBeam_2016),parseFloat(tennis_throw_2016),parseFloat(standing_long_jump_2016),parseFloat(reentry_run_2016),parseFloat(flexion_2016));
                for(var i=0;i<data_2014.length;i++){
                  if(!data[i]){
                    data[i]=0;
                  }
                }
                for(var i=0;i<data_2015.length;i++){
                  if(!data[i]){
                    data[i]=0;
                  }
                }
                for(var i=0;i<data_2016.length;i++){
                  if(!data[i]){
                    data[i]=0;
                  }
                }
                $('#quality_hb').highcharts({
            exporting: {
              enabled:false
            },
                  chart: {
                      type: 'bar'
                  },
                  title: {
                      text: '身体素质环比'
                  },
                  xAxis: {
                    categories: ['灵敏协调【越短越好】', '平衡能力【越短越好】', '上肢力量【越长越好】', '下肢力量【越长越好】','速度素质【越短越好】', '柔韧素质【越长越好】'],
                  },
                  yAxis: {
                      min: 0,
                      title: {
                          text: ''
                      }
                  },
                  legend: {
                      reversed: true
                  },
                  plotOptions: {
                      series: {
                          stacking: 'normal'
                      }
                  },
                  series: [{
                      name: '<?php echo $yeararr[2];?>',
                      data: data_2016
                  }, {
                      name: '<?php echo $yeararr[2]-1;?>',
                      data: data_2015
                  }, {
                      name: '<?php echo $yeararr[2]-2;?>',
                      data: data_2014
                  }]
                });
              </script>
              <!-- 素质环比结束 -->
          </div>
           <div style="width:100%;">
            <span style="margin:30px 0px 10px 10px;font-size:16px;">素质环比</span><br/><br/>
            <table class="table" style="width:99%;" border="1">
              <tr>
                <td height="30" style="text-align:center;">&nbsp;</td>
                <td style="text-align:center;">速度</td>
                <td style="text-align:center;">上肢</td>
                <td style="text-align:center;">下肢</td>
                <td style="text-align:center;">平衡</td>
                <td style="text-align:center;">灵敏</td>
                <td style="text-align:center;">柔韧</td>
              </tr>
              <tr>
                <td style="text-align:center;"><?php echo $yeararr[2]-2;?></td>
                <td style="text-align:center;">
                  <if condition="$userLastreport">
                    <if condition="$userLastreport[1]">
                    {$userLastreport[1]["reentry_run"]}秒
                    <if condition="$userLastreport[1]['report_result']['reentry_run'] eq 0">
                    /<font color="#0d0c0b">无法评级</font>
                    </if>
                    <if condition="$userLastreport[1]['report_result']['reentry_run'] eq 1">
                      /<font color="#a7c99f">很差</font>
                    </if>
                    <if condition="$userLastreport[1]['report_result']['reentry_run'] eq 2">
                      /<font color="#a4cdf8">较差</font>
                    </if>
                    <if condition="$userLastreport[1]['report_result']['reentry_run'] eq 3">
                      /<font color="#9799c9">一般</font>
                    </if>
                    <if condition="$userLastreport[1]['report_result']['reentry_run'] eq 4">
                      /<font color="#dd9769">良好</font>
                    </if>
                    <if condition="$userLastreport[1]['report_result']['reentry_run'] eq 5">
                      /<font color="#f0cb73">优秀</font>
                    </if>
                    <else/>无</if>
                  <else/>
                    无
                  </if>
                </td>
                <td style="text-align:center;">
                  <if condition="$userLastreport">
                    <if condition="$userLastreport[1]">{$userLastreport[1]["tennis_throw"]}米
                      <if condition="$userLastreport[1]['report_result']['tennis_throw'] eq 0">
                      /<font color="#0d0c0b">无法评级</font>
                      </if>
                      <if condition="$userLastreport[1]['report_result']['tennis_throw'] eq 1">
                        /<font color="#a7c99f">很差</font>
                      </if>
                      <if condition="$userLastreport[1]['report_result']['tennis_throw'] eq 2">
                        /<font color="#a4cdf8">较差</font>
                      </if>
                      <if condition="$userLastreport[1]['report_result']['tennis_throw'] eq 3">
                        /<font color="#9799c9">一般</font>
                      </if>
                      <if condition="$userLastreport[1]['report_result']['tennis_throw'] eq 4">
                        /<font color="#dd9769">良好</font>
                      </if>
                      <if condition="$userLastreport[1]['report_result']['tennis_throw'] eq 5">
                        /<font color="#f0cb73">优秀</font>
                      </if>
                    <else/>无</if>
                  <else/>
                    无
                  </if>
                </td>
                <td style="text-align:center;">
                  <if condition="$userLastreport">
                    <if condition="$userLastreport[1]">{$userLastreport[1]["standing_long_jump"]}厘米
                      <if condition="$userLastreport[1]['report_result']['standing_long_jump'] eq 0">
                      /<font color="#0d0c0b">无法评级</font>
                      </if>
                      <if condition="$userLastreport[1]['report_result']['standing_long_jump'] eq 1">
                        /<font color="#a7c99f">很差</font>
                      </if>
                      <if condition="$userLastreport[1]['report_result']['standing_long_jump'] eq 2">
                        /<font color="#a4cdf8">较差</font>
                      </if>
                      <if condition="$userLastreport[1]['report_result']['standing_long_jump'] eq 3">
                        /<font color="#9799c9">一般</font>
                      </if>
                      <if condition="$userLastreport[1]['report_result']['standing_long_jump'] eq 4">
                        /<font color="#dd9769">良好</font>
                      </if>
                      <if condition="$userLastreport[1]['report_result']['standing_long_jump'] eq 5">
                        /<font color="#f0cb73">优秀</font>
                      </if>
                    <else/>无</if>
                  <else/>
                    无
                  </if>
                </td>
                <td style="text-align:center;">
                  <if condition="$userLastreport">
                    <if condition="$userLastreport[1]">{$userLastreport[1]["balanceBeam"]}秒
                      <if condition="$userLastreport[1]['report_result']['balanceBeam'] eq 0">
                      /<font color="#0d0c0b">无法评级</font>
                      </if>
                      <if condition="$userLastreport[1]['report_result']['balanceBeam'] eq 1">
                        /<font color="#a7c99f">很差</font>
                      </if>
                      <if condition="$userLastreport[1]['report_result']['balanceBeam'] eq 2">
                        /<font color="#a4cdf8">较差</font>
                      </if>
                      <if condition="$userLastreport[1]['report_result']['balanceBeam'] eq 3">
                        /<font color="#9799c9">一般</font>
                      </if>
                      <if condition="$userLastreport[1]['report_result']['balanceBeam'] eq 4">
                        /<font color="#dd9769">良好</font>
                      </if>
                      <if condition="$userLastreport[1]['report_result']['balanceBeam'] eq 5">
                        /<font color="#f0cb73">优秀</font>
                      </if>
                    <else/>无</if>
                  <else/>
                    无
                  </if>
                </td>
                <td style="text-align:center;">
                  <if condition="$userLastreport">
                    <if condition="$userLastreport[1]">{$userLastreport[1]["continuousJump"]}秒
                      <if condition="$userLastreport[1]['report_result']['continuousJump'] eq 0">
                      /<font color="#0d0c0b">无法评级</font>
                      </if>
                      <if condition="$userLastreport[1]['report_result']['continuousJump'] eq 1">
                        /<font color="#a7c99f">很差</font>
                      </if>
                      <if condition="$userLastreport[1]['report_result']['continuousJump'] eq 2">
                        /<font color="#a4cdf8">较差</font>
                      </if>
                      <if condition="$userLastreport[1]['report_result']['continuousJump'] eq 3">
                        /<font color="#9799c9">一般</font>
                      </if>
                      <if condition="$userLastreport[1]['report_result']['continuousJump'] eq 4">
                        /<font color="#dd9769">良好</font>
                      </if>
                      <if condition="$userLastreport[1]['report_result']['continuousJump'] eq 5">
                        /<font color="#f0cb73">优秀</font>
                      </if>
                    <else/>无</if>
                  <else/>
                    无
                  </if>
                </td>
                <td style="text-align:center;">
                  <if condition="$userLastreport">
                    <if condition="$userLastreport[1]">{$userLastreport[1]["flexion"]}厘米
                      <if condition="$userLastreport[1]['report_result']['flexion'] eq 0">
                      /<font color="#0d0c0b">无法评级</font>
                      </if>
                      <if condition="$userLastreport[1]['report_result']['flexion'] eq 1">
                        /<font color="#a7c99f">很差</font>
                      </if>
                      <if condition="$userLastreport[1]['report_result']['flexion'] eq 2">
                        /<font color="#a4cdf8">较差</font>
                      </if>
                      <if condition="$userLastreport[1]['report_result']['flexion'] eq 3">
                        /<font color="#9799c9">一般</font>
                      </if>
                      <if condition="$userLastreport[1]['report_result']['flexion'] eq 4">
                        /<font color="#dd9769">良好</font>
                      </if>
                      <if condition="$userLastreport[1]['report_result']['flexion'] eq 5">
                        /<font color="#f0cb73">优秀</font>
                      </if>
                    <else/>无</if>
                  <else/>
                    无
                  </if>
                </td>
              </tr>
              <tr>
                <td style="text-align:center;"><?php echo $yeararr[2]-1;?></td>
                <td style="text-align:center;">
                  <if condition="$userLastreport">
                    <if condition="$userLastreport[0]">{$userLastreport[0]["reentry_run"]}秒
                      <if condition="$userLastreport[0]['report_result']['reentry_run'] eq 0">
                      /<font color="#0d0c0b">无法评级</font>
                      </if>
                      <if condition="$userLastreport[0]['report_result']['reentry_run'] eq 1">
                        /<font color="#a7c99f">很差</font>
                      </if>
                      <if condition="$userLastreport[0]['report_result']['reentry_run'] eq 2">
                        /<font color="#a4cdf8">较差</font>
                      </if>
                      <if condition="$userLastreport[0]['report_result']['reentry_run'] eq 3">
                        /<font color="#9799c9">一般</font>
                      </if>
                      <if condition="$userLastreport[0]['report_result']['reentry_run'] eq 4">
                        /<font color="#dd9769">良好</font>
                      </if>
                      <if condition="$userLastreport[0]['report_result']['reentry_run'] eq 5">
                        /<font color="#f0cb73">优秀</font>
                      </if>
                    <else/>无</if>
                  <else/>
                    无
                  </if>
                </td>
                <td style="text-align:center;">
                  <if condition="$userLastreport">
                    <if condition="$userLastreport[0]">{$userLastreport[0]["tennis_throw"]}米
                      <if condition="$userLastreport[0]['report_result']['tennis_throw'] eq 0">
                      /<font color="#0d0c0b">无法评级</font>
                      </if>
                      <if condition="$userLastreport[0]['report_result']['tennis_throw'] eq 1">
                        /<font color="#a7c99f">很差</font>
                      </if>
                      <if condition="$userLastreport[0]['report_result']['tennis_throw'] eq 2">
                        /<font color="#a4cdf8">较差</font>
                      </if>
                      <if condition="$userLastreport[0]['report_result']['tennis_throw'] eq 3">
                        /<font color="#9799c9">一般</font>
                      </if>
                      <if condition="$userLastreport[0]['report_result']['tennis_throw'] eq 4">
                        /<font color="#dd9769">良好</font>
                      </if>
                      <if condition="$userLastreport[0]['report_result']['tennis_throw'] eq 5">
                        /<font color="#f0cb73">优秀</font>
                      </if>
                    <else/>无</if>
                  <else/>
                    无
                  </if>
                </td>
                <td style="text-align:center;">
                  <if condition="$userLastreport">
                    <if condition="$userLastreport[0]">{$userLastreport[0]["standing_long_jump"]}厘米
                      <if condition="$userLastreport[0]['report_result']['standing_long_jump'] eq 0">
                      /<font color="#0d0c0b">无法评级</font>
                      </if>
                      <if condition="$userLastreport[0]['report_result']['standing_long_jump'] eq 1">
                        /<font color="#a7c99f">很差</font>
                      </if>
                      <if condition="$userLastreport[0]['report_result']['standing_long_jump'] eq 2">
                        /<font color="#a4cdf8">较差</font>
                      </if>
                      <if condition="$userLastreport[0]['report_result']['standing_long_jump'] eq 3">
                        /<font color="#9799c9">一般</font>
                      </if>
                      <if condition="$userLastreport[0]['report_result']['standing_long_jump'] eq 4">
                        /<font color="#dd9769">良好</font>
                      </if>
                      <if condition="$userLastreport[0]['report_result']['standing_long_jump'] eq 5">
                        /<font color="#f0cb73">优秀</font>
                      </if>
                    <else/>无</if>
                  <else/>
                    无
                  </if>
                </td>
                <td style="text-align:center;">
                  <if condition="$userLastreport">
                    <if condition="$userLastreport[0]">{$userLastreport[0]["balanceBeam"]}秒
                      <if condition="$userLastreport[0]['report_result']['balanceBeam'] eq 0">
                      /<font color="#0d0c0b">无法评级</font>
                      </if>
                      <if condition="$userLastreport[0]['report_result']['balanceBeam'] eq 1">
                        /<font color="#a7c99f">很差</font>
                      </if>
                      <if condition="$userLastreport[0]['report_result']['balanceBeam'] eq 2">
                        /<font color="#a4cdf8">较差</font>
                      </if>
                      <if condition="$userLastreport[0]['report_result']['balanceBeam'] eq 3">
                        /<font color="#9799c9">一般</font>
                      </if>
                      <if condition="$userLastreport[0]['report_result']['balanceBeam'] eq 4">
                        /<font color="#dd9769">良好</font>
                      </if>
                      <if condition="$userLastreport[0]['report_result']['balanceBeam'] eq 5">
                        /<font color="#f0cb73">优秀</font>
                      </if>
                    <else/>无</if>
                  <else/>
                    无
                  </if>
                </td>
                <td style="text-align:center;">
                  <if condition="$userLastreport">
                    <if condition="$userLastreport[0]">{$userLastreport[0]["continuousJump"]}秒
                      <if condition="$userLastreport[0]['report_result']['continuousJump'] eq 0">
                      /<font color="#0d0c0b">无法评级</font>
                      </if>
                      <if condition="$userLastreport[0]['report_result']['continuousJump'] eq 1">
                        /<font color="#a7c99f">很差</font>
                      </if>
                      <if condition="$userLastreport[0]['report_result']['continuousJump'] eq 2">
                        /<font color="#a4cdf8">较差</font>
                      </if>
                      <if condition="$userLastreport[0]['report_result']['continuousJump'] eq 3">
                        /<font color="#9799c9">一般</font>
                      </if>
                      <if condition="$userLastreport[0]['report_result']['continuousJump'] eq 4">
                        /<font color="#dd9769">良好</font>
                      </if>
                      <if condition="$userLastreport[0]['report_result']['continuousJump'] eq 5">
                        /<font color="#f0cb73">优秀</font>
                      </if>
                    <else/>无</if>
                  <else/>
                    无
                  </if>
                </td>
                <td style="text-align:center;">
                  <if condition="$userLastreport">
                    <if condition="$userLastreport[0]">{$userLastreport[0]["flexion"]}厘米
                      <if condition="$userLastreport[0]['report_result']['flexion'] eq 0">
                      /<font color="#0d0c0b">无法评级</font>
                      </if>
                      <if condition="$userLastreport[0]['report_result']['flexion'] eq 1">
                        /<font color="#a7c99f">很差</font>
                      </if>
                      <if condition="$userLastreport[0]['report_result']['flexion'] eq 2">
                        /<font color="#a4cdf8">较差</font>
                      </if>
                      <if condition="$userLastreport[0]['report_result']['flexion'] eq 3">
                        /<font color="#9799c9">一般</font>
                      </if>
                      <if condition="$userLastreport[0]['report_result']['flexion'] eq 4">
                        /<font color="#dd9769">良好</font>
                      </if>
                      <if condition="$userLastreport[0]['report_result']['flexion'] eq 5">
                        /<font color="#f0cb73">优秀</font>
                      </if>
                    <else/>无</if>
                  <else/>
                    无
                  </if>
                </td>
              </tr>
              </tr>
              <tr>
                <td style="text-align:center;"><?php echo $yeararr[2];?></td>
                <td style="text-align:center;">{$data.reentry_run}秒
                  <if condition="$data['report_result']['reentry_run'] eq 0">
                    /<font color="#0d0c0b">无法评级</font>
                  </if>
                  <if condition="$data['report_result']['reentry_run'] eq 1">
                    /<font color="#a7c99f">很差</font>
                  </if>
                  <if condition="$data['report_result']['reentry_run'] eq 2">
                    /<font color="#a4cdf8">较差</font>
                  </if>
                  <if condition="$data['report_result']['reentry_run'] eq 3">
                    /<font color="#9799c9">一般</font>
                  </if>
                  <if condition="$data['report_result']['reentry_run'] eq 4">
                    /<font color="#dd9769">良好</font>
                  </if>
                  <if condition="$data['report_result']['reentry_run'] eq 5">
                    /<font color="#f0cb73">优秀</font>
                  </if>
                </td>
                <td style="text-align:center;">{$data.tennis_throw}米
                  <if condition="$data['report_result']['tennis_throw'] eq 0">
                    /<font color="#0d0c0b">无法评级</font>
                  </if>
                  <if condition="$data['report_result']['tennis_throw'] eq 1">
                    /<font color="#a7c99f">很差</font>
                  </if>
                  <if condition="$data['report_result']['tennis_throw'] eq 2">
                    /<font color="#a4cdf8">较差</font>
                  </if>
                  <if condition="$data['report_result']['tennis_throw'] eq 3">
                    /<font color="#9799c9">一般</font>
                  </if>
                  <if condition="$data['report_result']['tennis_throw'] eq 4">
                    /<font color="#dd9769">良好</font>
                  </if>
                  <if condition="$data['report_result']['tennis_throw'] eq 5">
                    /<font color="#f0cb73">优秀</font>
                  </if>
                </td>
                <td height="30" style="text-align:center;">{$data.standing_long_jump}厘米
                  <if condition="$data['report_result']['standing_long_jump'] eq 0">
                    /<font color="#0d0c0b">无法评级</font>
                  </if>
                  <if condition="$data['report_result']['standing_long_jump'] eq 1">
                    /<font color="#a7c99f">很差</font>
                  </if>
                  <if condition="$data['report_result']['standing_long_jump'] eq 2">
                    /<font color="#a4cdf8">较差</font>
                  </if>
                  <if condition="$data['report_result']['standing_long_jump'] eq 3">
                    /<font color="#9799c9">一般</font>
                  </if>
                  <if condition="$data['report_result']['standing_long_jump'] eq 4">
                    /<font color="#dd9769">良好</font>
                  </if>
                  <if condition="$data['report_result']['standing_long_jump'] eq 5">
                    /<font color="#f0cb73">优秀</font>
                  </if>
                </td>
                <td height="30" style="text-align:center;">{$data.balanceBeam}秒
                  <if condition="$data['report_result']['balanceBeam'] eq 0">
                    /<font color="#0d0c0b">无法评级</font>
                  </if>
                  <if condition="$data['report_result']['balanceBeam'] eq 1">
                    /<font color="#a7c99f">很差</font>
                  </if>
                  <if condition="$data['report_result']['balanceBeam'] eq 2">
                    /<font color="#a4cdf8">较差</font>
                  </if>
                  <if condition="$data['report_result']['balanceBeam'] eq 3">
                    /<font color="#9799c9">一般</font>
                  </if>
                  <if condition="$data['report_result']['balanceBeam'] eq 4">
                    /<font color="#dd9769">良好</font>
                  </if>
                  <if condition="$data['report_result']['balanceBeam'] eq 5">
                    /<font color="#f0cb73">优秀</font>
                  </if>
                  </td>
                <td height="30" style="text-align:center;">{$data.continuousJump}秒
                  <if condition="$data['report_result']['continuousJump'] eq 0">
                    /<font color="#0d0c0b">无法评级</font>
                  </if>
                  <if condition="$data['report_result']['continuousJump'] eq 1">
                    /<font color="#a7c99f">很差</font>
                  </if>
                  <if condition="$data['report_result']['continuousJump'] eq 2">
                    /<font color="#a4cdf8">较差</font>
                  </if>
                  <if condition="$data['report_result']['continuousJump'] eq 3">
                    /<font color="#9799c9">一般</font>
                  </if>
                  <if condition="$data['report_result']['continuousJump'] eq 4">
                    /<font color="#dd9769">良好</font>
                  </if>
                  <if condition="$data['report_result']['continuousJump'] eq 5">
                    /<font color="#f0cb73">优秀</font>
                  </if>
                </td>
                <td style="text-align:center;">{$data.flexion}厘米
                  <if condition="$data['report_result']['flexion'] eq 0">
                    /<font color="#0d0c0b">无法评级</font>
                  </if>
                  <if condition="$data['report_result']['flexion'] eq 1">
                    /<font color="#a7c99f">很差</font>
                  </if>
                  <if condition="$data['report_result']['flexion'] eq 2">
                    /<font color="#a4cdf8">较差</font>
                  </if>
                  <if condition="$data['report_result']['flexion'] eq 3">
                    /<font color="#9799c9">一般</font>
                  </if>
                  <if condition="$data['report_result']['flexion'] eq 4">
                    /<font color="#dd9769">良好</font>
                  </if>
                  <if condition="$data['report_result']['flexion'] eq 5">
                    /<font color="#f0cb73">优秀</font>
                  </if>
                </td>
              </tr>
            </table>
          </div>
        </div>
        <!-- 身体素质鉴定结束 -->
        <!-- 评价与建议开始-->
        <div class="litter_title">评价与建议</div>
        <div class="report_box" style="padding-top:10px;padding-bottom:10px;color:#000;font-size:14px;">
        <if condition="$data['comment']">
          {$data.comment}
        <else/>
          暂无评价
        </if>
        </div>
        <!-- 评价与建议结束 -->
        <!-- 体质改善开始-->
        <if condition="$data['advice_img']">
        <div class="litter_title">体质改善</div>
        <div class="report_box" style="padding-top:10px;padding-bottom:10px;color:#dd8b7f;font-size:14px;">
          <p style="padding-left:30px;">亲子游戏</p>
          <volist name="HealthAdvice" id="advice">
            <img src="{$advice.attach_image}">
          </volist>
        </div>
        </if>
        <!-- 体质改善结束 -->
      </div>
        <div class="con_main">
          <div class="con_tit"><span>综合评价</span></div>
          <div class="con_box">
            <textarea id="comment" style="width:99%;height:200px;"></textarea>
            <div class="con_box">
              体质改善建议：
                <input type="checkbox" name="advice_type" value="1">速度&nbsp;&nbsp;
                <input type="checkbox" name="advice_type" value="2">上肢&nbsp;&nbsp;
                <input type="checkbox" name="advice_type" value="3">下肢&nbsp;&nbsp;
                <input type="checkbox" name="advice_type" value="4">平衡&nbsp;&nbsp;
                <input type="checkbox" name="advice_type" value="5">灵敏&nbsp;&nbsp;
                <input type="checkbox" name="advice_type" value="6">柔韧&nbsp;&nbsp;
                <input type="checkbox" name="advice_type" value="7">综合&nbsp;&nbsp;
            </div>
            </if>
          </div>
            <div class="action_link tc small" style="border:0;">
              <input type="hidden" id="rpt_id" value="{$data.rpt_id}">
              <input type="hidden" id="test_id" value="{$data.test_id}">
              <a class="save" href="javascript:saveEvaluation();">提交</a>
              <a href="reset();">取消</a>
            </div>
        </div>
    </div>
</div>
<script>
function reset(){
  $("#comment").val("");
}
function saveEvaluation(){
  var comment=$("#comment").val();
  var rpt_id=$("#rpt_id").val();
  var test_id=$("#test_id").val();
  var advice_type=""; 
  $('input[name="advice_type"]:checked').each(function(){ 
    advice_type+=$(this).val()+",";
  }); 
  advice_type=advice_type.substring(0,advice_type.length-1);
  $.ajax({
    type: "POST",
    url:"{:U('public/Report/doSaveEvaluation')}",
    data:"rpt_id="+rpt_id+"&comment="+comment+"&advice_type="+advice_type+"&test_id="+test_id,
    dataType:"text",
    success:function(data){
      if(isNaN(data)){
          alert(data);
      }else{
        window.location.href=window.location.href;
      }
    }
  });
}
</script>
<include file="../Public/_foot" />